package net.showcal.api.request.mobile;


import com.alibaba.fastjson.JSON;

import net.showcal.api.ApiRuleException;
import net.showcal.api.XiniuRequest;
import net.showcal.api.domain.mobile.VerificationTypeEnum;
import net.showcal.api.internal.util.XiniuHashMap;
import net.showcal.api.response.mobile.VerificationCheckResponse;

import java.util.Map;



/**
* <p/>
*
<pre>
 * ***************************************************************
 *  Copyright (c) 2014 –瘦咖网络科技有限公司
    *  Title: com.showcal.platform.helper.PlatformHelperImpl
    *  Description: platform Request
    *  @since
    *  @author kevin
    * ***************************************************************
 * </pre>
*/
public class VerificationCheckRequest implements XiniuRequest<VerificationCheckResponse> {
private XiniuHashMap udfParams = new XiniuHashMap();
/**
* 获取API名称
*/
@Override
public String getApiMethodName() {
return "platform.valification.check";
}

    /**
    * 验证码
    */
    private String code;
    /**
    * 验证类型
    */
    private VerificationTypeEnum type;
    /**
    * 验证类型(手机号.邮件)
    */
    private String object;
    /**
    * 承租人ID
    */
    private Long tenantId;

    public String getCode(){
    return code;
    }

    public void setCode(String code){
    this.code=code;
    }

    public VerificationTypeEnum getType(){
    return type;
    }

    public void setType(VerificationTypeEnum type){
    this.type=type;
    }

    public String getObject(){
    return object;
    }

    public void setObject(String object){
    this.object=object;
    }

    public Long getTenantId(){
    return tenantId;
    }

    public void setTenantId(Long tenantId){
    this.tenantId=tenantId;
    }

@Override
public Map
<String, String> getTextParams() {
XiniuHashMap txtParams = new XiniuHashMap();
        txtParams.put("code", this.code);
    if(this.type!=null){
        txtParams.put("type", this.type);
    }

        txtParams.put("object", this.object);
        txtParams.put("tenantId", this.tenantId);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}

@Override
public Long getTimestamp() {
return null;
}

@Override
public void setTimestamp(Long timestamp) {

}

@Override
public Class getResponseClass() {
return VerificationCheckResponse.class;
}

@Override
public void check() throws ApiRuleException {
}

@Override
public Map
<String, String> getHeaderMap() {
return null;
}

@Override
public void putOtherTextParam(String key, String value) {
this.udfParams.put(key,value);
}
}